home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Electronic Messages / USEnet Digests / USEnet Vol. 4 / USEnet 4.53 < prev    next >
Encoding:
Text File  |  1988-06-15  |  30.7 KB  |  821 lines  |  [TEXT/ttxt]

  1. 25-Apr-88 11:43:11-PDT,32182;000000000000
  2. Return-Path: <usenet-mac-request@RELAY.CS.NET>
  3. Received: from RELAY.CS.NET by SUMEX-AIM.Stanford.EDU with TCP; Mon, 25 Apr 88 11:41:56 PDT
  4. Received: from relay2.cs.net by RELAY.CS.NET id aa12455; 25 Apr 88 12:13 EDT
  5. Received: from relay.cs.net by RELAY.CS.NET id aa05433; 25 Apr 88 11:51 EDT
  6. Received: from sdr.slb.com by RELAY.CS.NET id aa05385; 25 Apr 88 11:37 EDT
  7. Date: Mon, 25 Apr 88 11:03 EDT
  8. From: Jeffrey Shulman <SHULMAN@sdr.slb.com>
  9. Subject: Usenet Mac Digest V4 #53
  10. To: usenet-mac@RELAY.CS.NET, PIERCE%HDS@sdr.slb.com
  11. X-VMS-To: in%"usenet-mac@relay.cs.net",in%"PIERCE%HDS@SDR.SLB.COM"
  12.  
  13. Date: Mon 25 Apr 88 11:03:07-GMT
  14. From: Jeff Shulman <SHULMAN@SDR>
  15. Subject: Usenet Mac Digest V4 #53
  16. To: Usenet-List: ;
  17. Message-ID: <577965788.0.SHULMAN@SDR>
  18. Mail-System-Version: <VAX-MM(218)+TOPSLIB(129)@SDR>
  19.  
  20. Usenet Mac Digest     Friday, April 22, 1988         Volume 4 : Issue 53 
  21.  
  22. Today's Topics:
  23.      How to achieve some amount of execute only from Appleshare
  24.      Mac as an answering machine??
  25.      word 3.01 and Thunder
  26.      MacMan and double-clicking
  27.      Power from serial port
  28.      Re: Managing laser output in a student
  29.      SB-Prolog port for Mac?
  30.      Re: Mac as an answering machine??
  31.      Font/DA Juggler +
  32.      MAC II ROM Upgrade
  33.      Re: MacMan and double-clicking
  34.      Re: MAC II ROM Upgrade
  35.      Re: MacMan
  36.      Networking a whole bunch of Macs really fast
  37.      I fixed an unreadable floppy...now you can too !
  38.      Re: Networking a whole bunch of Macs really fast
  39.      Re: E-mail Mac/Mainframe
  40.      More on MPW tool graphics
  41.      Re: screen swapping
  42.      Re: TWO Byte Characters, SysEnvirons --
  43.      Re: Opening Working Directories
  44.      Re: How do you count unused master pointers?
  45.      Re: More on MPW tool graphics
  46.      Pointer arithmetic in C w/ or w/o locked handles
  47.      Re: custom MDEF vs. MenuKey
  48.  
  49. ---------------------------------------------------------------------- 
  50.  
  51. From: mdr@reed.UUCP (Mike Rutenberg)
  52. Subject: How to achieve some amount of execute only from Appleshare
  53. Date: 15 Apr 88 06:27:40 GMT
  54. Organization: Reed College, Portland OR
  55.  
  56. There are several solutions to the Appleshare execution problem. They
  57. aren't foolproof, but they might take care of 99 and 44/100 % of your
  58. problems.
  59.  
  60. Solution 1: If your environment consists of mostly floppy based
  61. machines, make the applications too large to fit on a floppy.  Add some
  62. new resources (call them NOPs or even something inconspicuous) which is
  63. large enough to make it larger than 800k.  It will no longer be finder
  64. copyable to a private diskette.  Note that this will take up more disk
  65. space on your server, but it will not interfere with any of the caches
  66. since that large resource will never be loaded off the disk.
  67.  
  68. Solution 2: Make the support files finder invisible.  Applications will
  69. still be able to find most of them, but the program as stolen will be
  70. less useful.  It also reduces the desktop clutter for people who just
  71. want to use the program!!!  Eg. You can make Microsoft Word's Help file,
  72. Dictionary, and Hyphenation file invisible and everything will work just
  73. fine.
  74.  
  75. Solution 3: Don't make the real application visible.  Make it, as is,
  76. invisible as in the previous solution.  Make sure to do this at the top
  77. level of the directory hierarchy - this ensures you won't have
  78. frustrated people who double click on their document but it can't find
  79. the application.  So you ask, how do I launch the real application?
  80.  
  81. Create a small application in the your most yummy compiled language. The
  82. complete Lightspeed C code follows:
  83.  
  84.     main() {
  85.         Lauch(0, "\pServerDisk:Microsoft Word");
  86.         }
  87.  
  88. Note that you do not have to initialize anything - doing so will take
  89. longer and will reduce any feedback the finder the finder provides to
  90. the person waiting patiently at their Mac (such as the watch cursor).
  91.  
  92. Build this launcher application, giving it the same icon as your real
  93. application, the same SIZE (this might help Multifinder), an FREF, a
  94. BNDL and all those other good things.  Name it something similar to your
  95. actual application.  If the actual application is called Microsoft Word,
  96. call this one Microsoft Word 3.01.  Similar names means that no matter
  97. how people start up the real application, the finder puts up a similar
  98. name.
  99.  
  100. When somebody clicks on this launcher application, it will immediately
  101. launch the invisible (but still quite there) real application.  If the
  102. user clicks on one of their documents, the real application will be
  103. directly launched, making the whole process even faster.
  104.  
  105. Suggestions, comments?
  106.  
  107. I'd be happy to construct this for anyone without the technical
  108. resources to do it.  I offer quick professional consulting, although
  109. most of this is pretty straight forward to do if you are comfortable
  110. mucking with Mac files.
  111.  
  112. Mike Rutenberg (503) 771-5516
  113. -- 
  114. Mike Rutenberg    for fast, robust food and software      (503)771-5516
  115.  
  116.  
  117. ------------------------------
  118.  
  119. From: hellerst@husc8.HARVARD.EDU (Joe Hellerstein)
  120. Subject: Mac as an answering machine??
  121. Date: 15 Apr 88 18:56:02 GMT
  122. Organization: Harvard Univ. Science Center
  123.  
  124. This might seem a rather expensive way of answering the phone, but
  125. shouldn't a Mac with a modem be able to act as an answering machine? Is
  126. there any existing software that does this?
  127.  
  128. Thanks in advance.
  129.  
  130. Joe Hellerstein
  131.  
  132.  
  133. ------------------------------
  134.  
  135. From: dgordon@teknowledge-vaxc.ARPA (Dan Gordon)
  136. Subject: word 3.01 and Thunder
  137. Date: 15 Apr 88 17:23:14 GMT
  138. Organization: Teknowledge, Inc., Palo Alto CA
  139.  
  140. I use Thunder to do word counts on my Word 3.01 documents.  I select the
  141. whole document, fire up thunder, ask to check the selection, and then
  142. just execute STATS from the dialog box that ensues.
  143.  
  144. The problem is, Thunder gives me a different word count practically
  145. every time I run this sequence.  The character count stays the same, but
  146. the word count varies by +-20%.
  147.  
  148. Anyone have a clue what's happening?  How to fix?  Another way to get a
  149. reasonably quick word count on a Word 3.01 document (the method of
  150. copying the document and replacing all white space with \n and then
  151. doing a line count which has been discussed here in the past is not
  152. "reasonably quick", in my book)?
  153.  
  154. Thanks for any help,
  155.  
  156. Dan Gordon
  157.  
  158.  
  159. ------------------------------
  160.  
  161. From: mesard@bbn.com (Wayne Mesard)
  162. Subject: MacMan and double-clicking
  163. Date: 15 Apr 88 21:20:36 GMT
  164. Organization: Bolt Beranek and Newman Inc., Cambridge MA
  165.  
  166. A couple of people have posted saying that after running the MacMan
  167. application, double clicking in the Finder no longer opens things (until
  168. the machine is rebooted).
  169.  
  170. Is there anyone that this _doesn't_ happen to?  It sure is bugging the
  171. heck out of me and my Mac+ running Finder 6.0/System 4.2.
  172.  
  173. I ran into a similar problem last year on someone else's machine.
  174. (Double-clicking wouldn't work until AFTER an application had been run.)
  175.  
  176. Does anyone understand what's going on here, and more importantly, how
  177. MacMan can be fixed?  (Is its author listening?)
  178.  
  179. -- 
  180. unsigned *Wayne_Mesard();                     MESARD@BBN.COM
  181.                                               BBN Labs, Cambridge, MA
  182. "All systems of useful complexity contain
  183.  software errors."
  184.                -The Eastport Report, p.14
  185.  
  186.  
  187. ------------------------------
  188.  
  189. From: ralph@computing-maths.cardiff.ac.uk (Ralph Martin)
  190. Subject: Power from serial port
  191. Date: 13 Apr 88 10:38:59 GMT
  192. Organization: Univ. Coll. Cardiff, Cardiff, WALES, UK.
  193.  
  194. Old Macs used to have a +5v power pin on the serial ports. Alas, newer
  195. ones dont, and I want to connect summat to the serial port which needs a
  196. 5v power supply at, say 20mA. It has been suggested to me that I can
  197. just connect to the Handshake out Pin, and use that for my +5v. This
  198. sounds too good to be true yet I suspect some such trick must work.
  199.  
  200. Anyone out there like to comment on this? Thanks, Ralph
  201.  
  202.  
  203. ------------------------------
  204.  
  205. From: leonardr@uxe.cso.uiuc.edu
  206. Subject: Re: Managing laser output in a student
  207. Date: 14 Apr 88 16:15:00 GMT
  208.  
  209.  
  210. ajq@j.cc.purdue.edu(John O'Malley) writes in comp.sys.mac
  211.  
  212. >We're in the early planning stages of setting up an open-access Macintosh
  213. >lab for the Purdue campus.  We'll have lotsa networked Macs and probably a
  214. >couple of LaserWriters.  We might charge for laser printouts.
  215. >
  216. >We'd like to figure out a way that we could automate the process of charging
  217. >for the laser output.  One way would be to hook up a card reading device,
  218. >similar to the copy-card readers (those credit-card like cards) that are
  219. >often attached to photocopiers in campus libraries.  Has anyone had experience
  220. >with this kind of thing?  Is it possible?  If such a device exists, I
  221. >imagine that it'd have to be installed on a non-shared LaserWriter.
  222.  
  223.     Here at the University of Illinois, that is exactly what we do.  We
  224. have attached a card reader to each of the public access LaserWriters
  225. which is then attached to its own Macintosh (trying to handle the card
  226. reader through a  shared (networked) system DOES NOT WORK TOO WELL
  227. (causes a LOT of hassles)).
  228.     We have found student fairly receptive to this method, the only problem
  229. that we have encountered is that we only have a limited number of LW's
  230. and lots of students.....
  231. -- 
  232. +---------------------------------+-----------------------------------+
  233. +                                 +  Any thing I say may be taken as  +
  234. +   Leonard Rosenthol             +  fact, then again you might decide+
  235. +   President, LazerWare, inc.    +  that it really isn't, so you     +
  236. +                                 +  never know, do you??             +
  237. +   leonardr@uxe.cso.uiuc.edu     +                                   +
  238. +   GEnie:  MACgician             +                                   +
  239. +   Delphi: MACgician             +                                   +
  240. +                                 +                                   +
  241. +---------------------------------+-----------------------------------+
  242.  
  243.  
  244. ------------------------------
  245.  
  246. From: bowles@cory.Berkeley.EDU (Eric Bowles)
  247. Subject: SB-Prolog port for Mac?
  248. Date: 16 Apr 88 02:35:48 GMT
  249. Organization: University of California, Berkeley
  250.  
  251.  
  252. Has anybody done a port of SB-Prolog for the Macintosh SE?  If so, how
  253. can I get a copy of it?
  254.  
  255. I'd appreciate any information relating to the above. Thanks in advance.
  256. -- 
  257. ================================================================================
  258. Eric Bowles                                                       "Piyo Piyo"
  259. ARPA:     bowles@cory.Berkeley.EDU                                 
  260. UUCP:     {decvax|hplabs|allegra|ihnp4|cbosgd}!ucbvax!ucbcory!bowles 
  261.  
  262.  
  263. ------------------------------
  264.  
  265. From: barmar@think.COM (Barry Margolin)
  266. Subject: Re: Mac as an answering machine??
  267. Date: 16 Apr 88 07:19:03 GMT
  268. Organization: Thinking Machines Corporation, Cambridge, MA
  269.  
  270. In article <4384@husc6.harvard.edu> hellerst@husc8.UUCP (Joe
  271. Hellerstein) writes:
  272. >but shouldn't a Mac with a modem be able to act as an answering machine?
  273.  
  274. You'll need more than a modem in order to do this.  The only sounds that
  275. a modem knows how to make are the hisses that are used for data
  276. transmission.  And the modem can only recognize the sounds that another
  277. modem makes.  The interface that is used between the modem and the
  278. computer does not permit full control of the sounds that are
  279. transmitted.
  280. -- 
  281. Barry Margolin
  282. Thinking Machines Corp.
  283.  
  284. barmar@think.com
  285. uunet!think!barmar
  286.  
  287.  
  288. ------------------------------
  289.  
  290. From: mdm@eleazar.Dartmouth.EDU (Michael McDaniel)
  291. Subject: Font/DA Juggler +
  292. Date: 15 Apr 88 19:50:58 GMT
  293. Organization: Dartmouth College, Hanover, NH
  294.  
  295. Configuration:  Mac SE/HD-20 Hard Disk/Font-DA Juggler +
  296.  
  297. If I shutdown without closing EVERY window on the screen, then Font/DA
  298. Juggler + doesn't load at the start of the next session. Anyone have any
  299. ideas/hints for how to fix this (other than closing all windows before
  300. shutdow)?
  301.  
  302. Many Thanks in advance.  Please e-mail to me at the address below.
  303. -- 
  304. | Michael McDaniel                                                       |
  305. | Usenet (UUCP):       ...!{harvard,linus,inhp4}!dartvax!u2!mdm          |
  306. | Internet/BITNET:     mdm@u2.dartmouth.edu                              |
  307. | Spock:  I was attempting the hell to communicate.                      |
  308.  
  309.  
  310. ------------------------------
  311.  
  312. From: lchirica@polyslo.UUCP (Laurian Chirica)
  313. Subject: MAC II ROM Upgrade
  314. Date: 16 Apr 88 07:49:07 GMT
  315. Organization: Cal Poly State Univ,CSC Dept,San Luis Obispo,CA 93407
  316.  
  317. Quote from Info World, April 11, 1988:
  318.  
  319. "Mac II users looking for more fire-power might ask their dealers for
  320. the free ROM upgrade required to run A/UX.  I am not saying to pay the
  321. $4,000 or so to actually buy A/UX; just get the ROM upgrade. It is free,
  322. it gets you a brand-new mother board, and makes disk accesses under
  323. Finder twice as fast.  No wonder Apple has been so quiet about this
  324. freebie."
  325.  
  326. Question:  Does anyone know anything more about this?  My dealer knows
  327. nothing.
  328.  
  329. -- 
  330. Laurian M. Chirica  (lchirica@polyslo.UUCP)
  331. Computer Science Department
  332. California Polytechnic State University (CAL POLY)
  333. San Luis Obispo, CA 93407 - (805) 756-1332
  334.  
  335.  
  336. ------------------------------
  337.  
  338. From: perkins@acf8.UUCP (Mark E. Perkins)
  339. Subject: Re: MacMan and double-clicking
  340. Date: 16 Apr 88 14:34:00 GMT
  341. Organization: New York University
  342.  
  343. > A couple of people have posted saying that after running the MacMan
  344. > application, double clicking in the Finder no longer opens things (until
  345. > the machine is rebooted).
  346.  
  347.     I notified the author about this problem not long after the posting.
  348. I have not received any reply.
  349.  
  350.     The probelm is that MacMan (and some other stuff I've seen) is
  351. leaving the System Event Mask set so that it ignores mouseUp events. The
  352. Finder does not reset the mask to everyEvent.  Hence, the problem with
  353. double-clicks.
  354.  
  355.     I have not found a way to patch these prpgrams directly, but I made
  356. an FKEY that fixes the situation.  All it does is set the System Event
  357. Mask to everyEvent, then return.  I can e-mail to anyone interested.  If
  358. there is sufficient interest, I could post it (it's VERY short).
  359.  
  360.     Please direct responses to the address below.
  361.  
  362.     Mark Perkins
  363. -- 
  364. Internet:  mark@vml.psych.nyu.edu    (that's VEE-EM-ELL)
  365. Usenet:    {seismo|ihnp4|allegra}!cmcl2!vml!mark
  366. US Mail:   Department of Psychology, NYU
  367.        6 Washington Place, room 970
  368.        New York, NY 10003
  369. Phone:       (212) 998-7861
  370.  
  371.  
  372. ------------------------------
  373.  
  374. From: mha@batcomputer.tn.cornell.edu (Mark H. Anbinder)
  375. Subject: Re: MAC II ROM Upgrade
  376. Date: 16 Apr 88 17:46:31 GMT
  377. Organization: Cornell Theory Center, Cornell University, Ithaca NY
  378.  
  379. The ROM upgrade has not yet shipped to dealers.  Keep asking your dealer
  380. about it, though, as it's NOT likely to be announced to the general
  381. public when it does ship.
  382. -- 
  383. Mark H. Anbinder, Cornell University Department of Media Services
  384. MHA@tcgould.tn.cornell.edu
  385. NG33 MVR Hall, Cornell Univ.
  386. Ithaca, NY 14853        (607) 255-1566
  387.  
  388.  
  389. ------------------------------
  390.  
  391. From: jdm@ut-emx.UUCP (Jim Meiss)
  392. Subject: Re: MacMan
  393. Date: 16 Apr 88 20:01:11 GMT
  394. Organization: UTexas Computation Center, Austin, Texas
  395.  
  396.  
  397.     Instead of trying to use MacMan, with all its problems, I suggest
  398. getting the "Inside Mac" DA from SUMEX. Its written by Bernard Gallet,
  399. and puts up a window with two scrolling lists, one for the various
  400. managers, and the other for each routine. Double clicking on the routine
  401. puts its description in an edit box at the top of the window.
  402.     This is a much nicer interface than macman's. It reads the same manual
  403. as macman.
  404.  
  405.     This brings me to the question: has anybody seen IM vol IV and V in
  406. this format?
  407.  
  408.  
  409.                 Jim Meiss                
  410.                  jdm@emx.utexas.edu
  411.                 jdm%uta.MFENET@nmfecc.ARPA
  412.  
  413.  
  414. ------------------------------
  415.  
  416. From: mark@intek01.UUCP (Mark McWiggins)
  417. Subject: Networking a whole bunch of Macs really fast
  418. Date: 15 Apr 88 21:57:42 GMT
  419. Organization: Intek, Inc., Bellevue WA
  420.  
  421. We're about to bid on a project that requires the networking of 140+ Mac
  422. SE's, using something faster than Appletalk.  What are our options? Our
  423. network guy says that that's too many nodes for Ethernet (for this
  424. amount of traffic, anyhow.)  Are there Arcnet (or other more
  425. "egalitarian" network) implementations available for the Mac?  What
  426. about TOPS?  Is it Ethernet-only, or are there other network options
  427. available for it?
  428.  
  429. Any guidance would be most appreciated; thanks in advance.  Please send
  430. E-mail, and I'll summarize for the net.
  431. -- 
  432.  
  433. Mark McWiggins            UUCP:        uunet!intek01!mark
  434. DISCLAIMER: I could be wrong.    INTERNET:    mark@intek01.UUCP
  435.                         (206) 641-5014
  436.  
  437.  
  438. ------------------------------
  439.  
  440. From: sqrkl@csvax.liv.ac.uk
  441. Subject: I fixed an unreadable floppy...now you can too !
  442. Date: 15 Apr 88 11:50:26 GMT
  443.  
  444. Ever had a disk go 'unreadable' on you ? Well, read on...
  445.  
  446. My MacWrite disk decided to self-destruct the other day...so badly that
  447. the Finder kept saying that the 'disk is unreadable' !! Having plenty of
  448. work on it, I set myself the task of fixing it.
  449.    I first tried 'DiskExpress' which provides a Finder-like interface
  450. for compressing/verifying/repairing disks. Unfortunately, it was TOO
  451. much like the Finder - it claimed the disk was unreadable as well (with
  452. a remarkably similar dialog box, I might add).
  453.    Next, I tried 'Fedit+'. I really like this program - it's great for
  454. just hacking around, so I was quite optimistic about my chances. At
  455. least it recog- nised the faulty disk (it just called it 'External
  456. Drive'), so I did an 'Open Volume' on it and -BINGO- up came sector 0 of
  457. the disk. Simple investigation found that absolute sectors 3 and 4 were
  458. unreadable, but Fedit+ wouldn't show me sectors 3 or 4 (it stuck on
  459. sector 2 if I used Next Sector and sector 5 if I tried Prev Sector). So
  460. I resorted to the good old 'Read Multiple Sectors' and 'Write Multiple
  461. Sectors' with buffer 0, from sector 3 and length 2 sectors. I used 'Read
  462. Mult...', ignored the error dialog, then 'Write Mult...'. Hooray ! I now
  463. had readable sectors 3 and 4, but...they had rubbish in them.
  464.    It now dawned on me that Fedit+ had no 'Repair boot tracks/directory
  465. structure' option, but DiskExpress DID. So I trundled back to
  466. DiskExpress, where I got 'Disk is damaged' instead. However, DiskExpress
  467. bestowed pity on me and this time let me mount the disk and do things
  468. with it. So I set the 'Repair Automatically' flag on and clicked on
  469. 'Start', then prayed...
  470.    My prayers were answered. On exiting to the Finder, ejecting the
  471. suspect disk (Shift-Command-2) and re-inserting it mounted a pefect
  472. working copy of MacWrite. One disk backup later and I had a good disk
  473. again.
  474.    So the moral of this tail is - Don't Give Up (unless you're Kate Bush
  475. or Peter Gabriel !) on bad disks : they can be salvaged with some
  476. patience and copies of Fedit+ and DiskExpress.
  477. -- 
  478. Richard K. Lloyd,          ***************************************************
  479. Computer Science Dept.,    * JANET : SQRKL@UK.AC.LIV.CSVAX                   *
  480. Liverpool University,      * UUCP  : {backbone}!mcvax!ukc!mupsy!liv-cs!SQRKL *
  481. Merseyside, England,       * ARPA  : SQRKL%csvax.liv.ac.uk@nss.cs.ucl.ac.uk  *
  482. Great (?) Britain.         ***************************************************
  483.  
  484. "I have VERY strong opinions which are nothing whatsoever to do with the
  485. University of Liverpool, so blame ME if I bitch about useless IBM PC clones,
  486. even more redundant IBM mainframes and the terrible Atari ST..."
  487.  
  488.  
  489. ------------------------------
  490.  
  491. From: bob@allosaur.cis.ohio-state.edu (Bob Sutterfield)
  492. Subject: Re: Networking a whole bunch of Macs really fast
  493. Date: 17 Apr 88 17:39:06 GMT
  494. Organization: The Ohio State University Dept of Computer & Information Science
  495.  
  496. Though that number of machines may overload a single Ethernet, why can't
  497. you segregate them into smaller groups separated by routers or gateways?
  498.  Your subnets may wind up matching the physical layout of the
  499. installation anyway, which would make for easier installation and
  500. troubleshooting. -=-
  501.  Bob Sutterfield, Department of Computer and Information Science
  502.  The Ohio State University; 2036 Neil Ave. Columbus OH USA 43210-1277
  503.  bob@cis.ohio-state.edu or ...!att!osu-cis!bob
  504.  
  505.  
  506. ------------------------------
  507.  
  508. From: kevins@eleazar.Dartmouth.EDU (Kevin M. Schofield)
  509. Subject: Re: E-mail Mac/Mainframe
  510. Date: 17 Apr 88 00:31:43 GMT
  511. Organization: Dartmouth College, Hanover, NH
  512.  
  513. This appears to be a hot topic; it's been developing over the last few
  514. months, and I would hazard a guess that it's going to get a lot hotter
  515. in the next few months. Here at Dartmouth, we've looked at the email
  516. products that currently exist for the Mac, and we're not happy with any
  517. of them. We want a system that will handle 5000+ users, have an
  518. interface to Internet-style mail, etc.  We've decided to write our own,
  519. though I imagine that someone else will come along with one real soon. 
  520.  
  521. There are lots of issues involved here:
  522.  
  523.    1. What mainframe to implement it on? (probably UNIX, but then we
  524. still have
  525.    the question of Appletalk support on a UNIX box).
  526.  
  527.    2. How many users will it support?
  528.  
  529.    3. What does the user interface look like? (believe me, this is NOT
  530. an easy
  531.    question, nor is there any obvious solution)
  532.  
  533.    4. What features should it support? filing of messages? enclosures? 
  534.    aliases/mailing lists? etc.
  535.  
  536. Ours is coming along nicely, but the server end is being written on a
  537. mainframe running an operating system developed here at Dartmouth, and
  538. so won't be portable.  I would be interested in hearing who else is
  539. working on this, as I really do believe that a Mac email system with an
  540. interface to mainframe mail will be in great demand in a few months.
  541.  
  542. -Kevin M. Schofield
  543.  Software Development       Kiewit Computation Center  Dartmouth College
  544.  
  545.  
  546. ------------------------------
  547.  
  548. From: mkb@ROVER.RI.CMU.EDU (Mike Blackwell)
  549. Subject: More on MPW tool graphics
  550. Date: 14 Apr 88 21:44:55 GMT
  551. Organization: Carnegie-Mellon University, CS/RI
  552.  
  553. Okay, I can now open windows from a MPW tool, and draw in them. It works
  554. okay - at least now I can see my data, but it's still pretty fragile,
  555. and leaves a lot to be desired. Here are some of the problems I have:
  556.  
  557. Can't get events (update, in particular) from MPW, so I can't redraw the
  558. window if it's been obscured, and then re-exposed.
  559.  
  560. If the graphic window is not the active window, then clicking on it will
  561. make it active, as expected. The window can also be dragged. But, if the
  562. window is active, and I click in the content region, MPW crashes doing a
  563. GetPort.
  564.  
  565. There seems to be some problems using stdio to the Worksheet - sometimes
  566. it takes a while for output to show up. Maybe just an occasional flush
  567. in the tool will work - haven't tried that. Also, the cursor in the
  568. Worksheet blinks very rapidly and erratically when the graphic window
  569. exists.
  570.  
  571. I tried saving the current port, and only switching to the graphic port
  572. when I was going to draw, and switching back when I was done, but that
  573. caused things to crash...
  574.  
  575. If I command-. out of the tool, then the graphic window never gets
  576. closed, and becomes unhooked from reality. No way to get rid of it, and
  577. MPW isn't really happy...
  578.  
  579. Anyway, I've included the code fragments I've been using. If you have
  580. any ideas on how to do things better, I'd really appreciate them!
  581.  
  582.         Mike Blackwell        mkb@rover.ri.cmu.edu
  583.  
  584. /* tool_graphics.c  --  Routines to manage a graphics window from an MPW
  585. tool */
  586.  
  587. /* Mike Blackwell, Robotics Institute, Carnegie-Mellon University */
  588.  
  589.     #define __ALLNU__
  590.     #include <Types.h>
  591.     #include <Quickdraw.h>
  592.     #include <Windows.h>
  593.  
  594.     extern struct qd qd;
  595.     Rect graphicRect;
  596.     WindowPtr graphicWindow;
  597.     WindowRecord graphicWRecord;
  598.  
  599.     /* Open a graphic window with inside diminsions X by Y, centered */
  600.     /* on the second graphic device screen if it exists, otherwise put it
  601. */
  602.     /* on the main screen. The window is placed in the background. */
  603.     open_graphic_window(X, Y, title)
  604.     int X, Y;
  605.     char *title;
  606.     {
  607.         GDHandle gdh;
  608.         int top, left, height, width;
  609.  
  610.         InitGraf(&qd.thePort);
  611.         gdh = GetMainDevice();
  612.         if (GetNextDevice(gdh) != nil) gdh = GetNextDevice(gdh);
  613.         height = (*gdh)->gdRect.bottom - (*gdh)->gdRect.top;
  614.         width = (*gdh)->gdRect.right - (*gdh)->gdRect.left;
  615.         top = (*gdh)->gdRect.top + (height - Y) / 2;
  616.         left = (*gdh)->gdRect.left + (width - X) / 2;
  617.  
  618.         SetRect(&graphicRect, left, top, left + X, top + Y);
  619.         graphicWindow = NewWindow(&graphicWRecord, &graphicRect, title,
  620.                       true, 0, nil, false, nil);
  621.         SetPort(graphicWindow);
  622.     }
  623.  
  624.  
  625.     /* This must be called before the program exits! */
  626.     close_graphic_window()
  627.     {
  628.         CloseWindow(graphicWindow);
  629.     }
  630.  
  631.  
  632. ------------------------------
  633.  
  634. From: jwhitnel@csi.UUCP (Jerry Whitnell)
  635. Subject: Re: screen swapping
  636. Date: 14 Apr 88 15:58:27 GMT
  637. Organization: Communications Solutions Inc., San Jose, Ca
  638.  
  639. Beyond Dark Castle works on the Mac II in 2-bit mode (b&w).  Dark Castle
  640. came out before the Mac II was known to exist and so does not work.  The
  641. trick to supporting both seems simple enough with only a little extra
  642. work on your part.  Detirmine whether you are running on a Plus/SE or a
  643. II.  If on the Plus/SE, use screen swapping.  If on the II, make up a
  644. offscreen bit-map that you draw into, then copybit the whole thing onto
  645. the real screen.  On a II, in two-bit mode this should be fast enough. A
  646. little more work and we II owners won't flame you when your program
  647. doesn't work on our machines :-).
  648. -- 
  649. Jerry Whitnell                Been through Hell?
  650. Communication Solutions, Inc.        What did you bring back for me?
  651.                         - A. Brilliant
  652.  
  653.  
  654. ------------------------------
  655.  
  656. From: dan@Apple.COM (Dan Allen)
  657. Subject: Re: TWO Byte Characters, SysEnvirons --
  658. Date: 15 Apr 88 05:45:51 GMT
  659. Organization: Apple Computer Inc, Cupertino, CA
  660.  
  661. If the problem at hand is to simply write characters to a textfile with
  662. MPW Pascal, and these characters are English (that is NOT Arabic,
  663. Hebrew, Japanese, or Chinese), THEN your problem has absolutely nothing
  664. to do with SysEnvirons, the Script Manager, or anything else that has to
  665. do with Two Byte Characters, as that is all for international non-Roman
  666. scripts.
  667.  
  668. What your problem DOES concern, is the fact that in MPW Pascal, a CHAR
  669. occupies a word, which is TWO BYTES.  However, when writing CHARs to
  670. textfiles, only a normal bytes worth is written, so your problem is
  671. still a mystery.
  672.  
  673. Please send me more info and I'll see what I can do to help...
  674. -- 
  675. Dan Allen
  676. MPW Engineer
  677. Apple Computer
  678.  
  679.  
  680. ------------------------------
  681.  
  682. From: darin@Apple.COM (Darin Adler)
  683. Subject: Re: Opening Working Directories
  684. Date: 15 Apr 88 07:35:07 GMT
  685. Organization: Apple
  686.  
  687. In article <1988Apr13.115044.1591@mntgfx.mentor.com>
  688. tomc@mntgfx.mentor.com (Tom Carstensen) writes:
  689. > I can't just go closing that last one I opened, it may 
  690. > have a file in it that I opened.
  691.  
  692. Once you have opened a file, the working directory no longer needs to be
  693. open. HFS extracts the volume and directory information from the
  694. WDRefNum when the Open call is made. You should always open working
  695. directories for as short a time as possible, closing them after using
  696. them. As a matter of fact, you can avoid opening working directories at
  697. all by using the PBH calls, which take vRefNums and dirIDs to specify
  698. the directory and volume a file is in.
  699. -- 
  700. Darin Adler, Apple Computer                          AppleLink:Adler4
  701. UUCP: {sun,voder,nsc,mtxinu,dual}!apple!darin  CSNET: darin@Apple.com
  702.  
  703.  
  704. ------------------------------
  705.  
  706. From: darin@Apple.COM (Darin Adler)
  707. Subject: Re: How do you count unused master pointers?
  708. Date: 15 Apr 88 07:38:29 GMT
  709. Organization: Apple
  710.  
  711. In article <11550001@hpfcdc.HP.COM> bayes@hpfcdc.HP.COM (Scott Bayes)
  712. writes:
  713. > How likely is the master pointer format to change?
  714.  
  715. Master pointers will probably continue to work like they do today,
  716. except that the additional information (locked, purgeable, and resource
  717. bits) will be stored someplace other than the high byte of the master
  718. pointer. One possiblity would be allocating a second long word, either
  719. before or after the master pointer, and putting the bits there.
  720. -- 
  721. Darin Adler, Apple Computer                          AppleLink:Adler4
  722. UUCP: {sun,voder,nsc,mtxinu,dual}!apple!darin  CSNET: darin@Apple.com
  723.  
  724.  
  725. ------------------------------
  726.  
  727. From: darin@Apple.COM (Darin Adler)
  728. Subject: Re: More on MPW tool graphics
  729. Date: 15 Apr 88 21:48:29 GMT
  730. Organization: Apple
  731.  
  732. In article <1422@pt.cs.cmu.edu> mkb@rover.ri.cmu.edu (Mike Blackwell)
  733. writes:
  734. > If I command-. out of the tool, then the graphic window never gets closed,
  735. > and becomes unhooked from reality. No way to get rid of it, and MPW isn't
  736. > really happy...
  737.  
  738. You can use the MPW routine onexit (in StdLib.h) to add a routine to a
  739. list of routines automatically called when the tool exits due to a
  740. signal (such as the abort signal sent by Command-.).
  741. -- 
  742. Darin Adler, Apple Computer                          AppleLink:Adler4
  743. UUCP: {sun,voder,nsc,mtxinu,dual}!apple!darin  CSNET: darin@Apple.com
  744.  
  745.  
  746. ------------------------------
  747.  
  748. From: tomc@mntgfx.mentor.com (Tom Carstensen)
  749. Subject: Pointer arithmetic in C w/ or w/o locked handles
  750. Date: 15 Apr 88 19:53:34 GMT
  751. Organization: Mentor Graphics Corporation, Beaverton Oregon
  752.  
  753. Is the problem I'm noticing with the following code fragment the
  754. compiler, or on error:
  755.  
  756.     Handle hdl;
  757.     char *ptr;
  758.     long length;
  759.  
  760.     HLock(hdl);
  761.     ptr = *hdl;
  762.  
  763.     while ( <condition> ) {
  764.         /* ... stuff here ... */
  765.         ptr++;
  766.     }
  767.     HUnlock(hdl);
  768.     length = (long) (ptr - *hdl);
  769.  
  770. Running under The Debugger, I notice that the value for ptr = 80023678,
  771. and the value for *hdl = 00023670, and therefore length becomes
  772. 80000008, which is actually a negative number.
  773.  
  774. The '8' (or 1000 binary) occurs because it is Locked -  (only on 68000
  775. w/ 24 bit addressing).  but when I do pointer arithmetic, is the
  776. compiler messing up or  should I only add Locked handles or Unlocked
  777. handles together.
  778.  
  779. If I move the length calculation before I unlock the  handle, then
  780. length becomes 8, and I'm ok.
  781. -- 
  782. :------------------------------------------------------------:
  783. : Tom Carstensen         Usenet: tomc@mntgfx.MENTOR.COM      :
  784. : Mentor Graphics                Delphi: CARSTENSEN          :
  785. :                                GEnie:  XPC23637            :
  786. :                                                            :
  787. :     . . .  AAhh!  I see you have a machine that goes PING! :
  788. :                                       - Monty Python       :
  789. :------------------------------------------------------------:
  790.  
  791.  
  792. ------------------------------
  793.  
  794. From: joachim@iravcl.ira.uka.de
  795. Subject: Re: custom MDEF vs. MenuKey
  796. Date: 16 Apr 88 16:57:43 GMT
  797.  
  798. In article <330@natinst.UUCP>, brian@natinst.UUCP (Brian H. Powell)
  799. writes:
  800. > the first few standard header bytes) from a regular MENU.
  801. >      If you look at one of the custom MENUs with ResEdit, you get lots of
  802. > gibberish.  In particular, the standard MENU template shows that an N
  803. > appears in the MenuKey equivalent box.  Herein lies the problem.
  804. >      We have a situation where NEW (normally cmd-N) is grayed out.
  805. > Further down the menu bar is our custom menu.  MenuKey returns the custom
  806. > menu's ID if NEW is grayed out.
  807.  
  808. Add a filler of two zero bytes after the standard components of the
  809. record. This will stop MenuKey from interpreting the rest of the record.
  810. It also stops ResEdit from displaying garbage, but it does not stop it
  811. from truncating the menu :-(
  812. -- 
  813. Joachim Lindenberg, University of Karlsruhe
  814. Federal Republic of Germany - West Germany.
  815.  
  816. ------------------------------
  817.  
  818. End of Usenet Mac Digest
  819. ************************
  820. -------
  821.